<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      pciutils-3.6.4
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;12.&nbsp;System Utilities
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="pax.html" title="Pax-20161104">Prev</a>
          <p>
            Pax-20161104
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="pm-utils.html" title=
          "pm-utils-1.4.1">Next</a>
          <p>
            pm-utils-1.4.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sysutils.html" title=
          "Chapter&nbsp;12.&nbsp;System Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="pciutils" name="pciutils"></a>pciutils-3.6.4
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to PCI Utils
        </h2>
        <p>
          The <span class="application">PCI Utils</span> package contains a
          set of programs for listing PCI devices, inspecting their status
          and setting their configuration registers.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://www.kernel.org/pub/software/utils/pciutils/pciutils-3.6.4.tar.xz">
                https://www.kernel.org/pub/software/utils/pciutils/pciutils-3.6.4.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 4343b37e19f319ce8f3d59c30031790e
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 356 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 3.6 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          pciutils Dependencies
        </h3>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="../basicnet/curl.html" title=
          "cURL-7.69.1">cURL-7.69.1</a>, <a class="xref" href=
          "../basicnet/wget.html" title="Wget-1.20.3">Wget-1.20.3</a>, or
          <a class="xref" href="../basicnet/lynx.html" title=
          "Lynx-2.8.9rel.1">Lynx-2.8.9rel.1</a> (for the update-pciids script
          to function correctly).
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/pciutils">http://wiki.linuxfromscratch.org/blfs/wiki/pciutils</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of PCI Utils
        </h2>
        <p>
          Install <span class="application">PCI Utils</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">make PREFIX=/usr                \
     SHAREDIR=/usr/share/hwdata \
     SHARED=yes</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make PREFIX=/usr                \
     SHAREDIR=/usr/share/hwdata \
     SHARED=yes                 \
     install install-lib        &amp;&amp;

chmod -v 755 /usr/lib/libpci.so</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>SHARED=yes</code></em>: This parameter
          enables building of the shared library instead of the static one.
        </p>
        <p>
          <code class="option">ZLIB=no</code>: This option prevents
          compression of the <code class="filename">pci.ids</code> file.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring PCI Utils
        </h2>
        <p>
          The <code class="filename">pci.ids</code> data file is constantly
          being updated. To get a current version of this file, run
          <span class="command"><strong>update-pciids</strong></span> as the
          <code class="systemitem">root</code> user. This program requires
          the <a class="xref" href="which.html" title=
          "Which-2.21 and Alternatives">Which-2.21</a> script or program to
          find <a class="xref" href="../basicnet/curl.html" title=
          "cURL-7.69.1">cURL-7.69.1</a>, <a class="xref" href=
          "../basicnet/lynx.html" title="Lynx-2.8.9rel.1">Lynx-2.8.9rel.1</a>
          or <a class="xref" href="../basicnet/wget.html" title=
          "Wget-1.20.3">Wget-1.20.3</a> which are used to download the most
          current file, and then replace the existing file in <code class=
          "filename">/usr/share/hwdata</code>.
        </p>
        <p>
          You should update the <code class=
          "filename">/usr/share/hwdata/pci.ids</code> file periodically.
          <span class="phrase">If you've installed <a class="xref" href=
          "fcron.html" title="Fcron-3.2.1">Fcron-3.2.1</a> and completed the
          section on periodic jobs, execute</span> the following commands, as
          the <code class="systemitem">root</code> user, to create a
          <span class="phrase">weekly cron job:</span>
        </p>
        <pre class="root">
<kbd class=
"command">cat &gt; /etc/cron.weekly/update-pciids.sh &lt;&lt; "EOF" &amp;&amp;
<code class="literal">#!/bin/bash
/usr/sbin/update-pciids</code>
EOF
chmod 754 /etc/cron.weekly/update-pciids.sh</kbd>
</pre>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">lspci, setpci, and update-pciids</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libpci.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/include/pci and
              /usr/share/hwdata</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="lspci" name="lspci"></a><span class=
                    "term"><span class=
                    "command"><strong>lspci</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a utility for displaying information about all PCI
                    buses in the system and all devices connected to them.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="setpci" name="setpci"></a><span class=
                    "term"><span class=
                    "command"><strong>setpci</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a utility for querying and configuring PCI devices.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="update-pciids" name=
                    "update-pciids"></a><span class="term"><span class=
                    "command"><strong>update-pciids</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    fetches the current version of the PCI ID list.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libpci" name="libpci"></a><span class=
                    "term"><code class="filename">libpci.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    is library that allows applications to access the PCI
                    subsystem.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 17:50:16 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="pax.html" title="Pax-20161104">Prev</a>
          <p>
            Pax-20161104
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="pm-utils.html" title=
          "pm-utils-1.4.1">Next</a>
          <p>
            pm-utils-1.4.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sysutils.html" title=
          "Chapter&nbsp;12.&nbsp;System Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
